<?php
	if (isset($_GET["utc"]) && $_GET["utc"] == "1")
	{
		date_default_timezone_set("UTC");
	}

	$time = time();

	$result = array("string" => date('Y-m-d H:i:s', $time), "unix" => $time);
	echo json_encode($result);
?>